The Events tab page, allows you to assign a macro to certain events which occur in a form.
イベント タブでは、フォーム内で発生するイベントにマクロを割り当てることができます。
|
To access this command...この機能の見つけ方 |
To link an event with a macro, first write a macro that contains all the commands to be executed when the event happens. Then assign this macro to the respective event by clicking the ... button beside the corresponding event. The Assign Macro dialog opens, where you can select the macro.
イベントとマクロを関連付けるには、まずイベントの発生時に実行する必要のあるコマンドをすべて含めたマクロを記述します。次に、対応するイベントにこのマクロを割り当てます。そのためには、対応するイベントの横にある「...」ボタンをクリックします。これによって、マクロの割り当て ダイアログが開くので、マクロを選択することができます。
The following actions can be configured individually, meaning that you can use your own dialogs to depict an action:
以下のアクションは、ユーザーが自由に構成できます。すなわち、ユーザー独自のダイアログを使用して、アクションを表示できます。
Displaying an error message,
エラーメッセージの表示、
Confirming a delete process (for data records),
(レコードの)削除処理の確認、
Querying parameters,
パラメータのクエリー、
Checking input when saving a data record.
およびレコードを保存する際の入力のチェック
For example, you can issue a "confirm deletion" request such as "Really delete customer xyz?" when deleting a data record.
例えば、データレコードの削除時に、「本当に顧客 xyz を削除しますか?」などのメッセージを表示する「削除確認」要求を出すことができます。
![]() | The events that are shown in the Events dialog cannot be edited directly. You can delete an event from the list by pressing the Del key.
イベントダイアログで示されるイベントは直接編集することができません。Del キーを押してリストから削除することはできます。 |
The following lists and describes all events in a form that can be linked to a macro:
次に、マクロに関連付けることができるフォーム内の全イベントとその説明を示します:
The Before update event occurs before the control content changed by the user is written into the data source. The linked macro can, for example, prevent this action by returning "FALSE".
更新する前 イベントは、ユーザーが変更したコントロールの内容がデータソースに書き込まれる前に発生します。たとえば、リンクされたマクロは "FALSE" を返すことでこのアクションを阻止できます。
The After update event occurs after the control content changed by the user has been written into the data source.
更新した後 イベントは、ユーザーが変更したコントロールの内容がデータソースに書き込まれた後に発生します。
The Prior to reset event occurs before a form is reset. The linked macro can, for example, prevent this action by returning "FALSE".
元に戻す前 イベントは、フォームがリセットされる前に発生します。たとえば、リンクされたマクロは FALSE を返すと、このアクションを阻止できます。
A form is reset if one of the following conditions is met:
以下の条件の1つを満たしていれば、フォームをリセットします。
The user presses an (HTML) button that is defined as a reset button.
ユーザーが、リセットボタンとして定義されている (HTML)ボタンを押す
A new and empty record is created in a form that is linked to a data source. For example, in the last record, the Next Record button may be pressed.
データソースに関連付けられているフォーム内で、新しい空白のレコードを作成します。例えば、最後のレコードでボタン 次のレコード を押した場合などが考えられます。
The After resetting event occurs after a form has been reset.
元に戻した後 イベントは、フォームがリセットされた後に発生します。
The Before submitting event occurs before the form data is sent.
サブミットする前 イベントは、フォームデータが送信される前に発生します。
The When loading event occurs directly after the form has been loaded.
読み込む時 イベントは、フォームが読み込まれた直後に発生します。
The Before reloading event occurs before the form is reloaded. The data content has not yet been refreshed.
再ロードする前 イベントは、フォームが再読み込みされる前に発生します。この時点で、データの内容はまだ更新されていません。
The When reloading event occurs directly after the form has been reloaded. The data content has already been refreshed.
再読み込み時 イベントは、フォームが再読み込みされた直後に発生します。この時点で、データの内容はすでに更新されています。
The Before unloading event occurs before the form is unloaded; that is, separated from its data source.
アンロードする前 イベントは、フォームが読み込み解除される (つまり、そのデータソースから切断される) 前に発生します。
The When unloading event occurs directly after the form has been unloaded; that is, separated from its data source.
アンロードする時 イベントは、フォームが読み込み解除された (つまり、そのデータソースから切断された) 直後に発生します。
The Confirm deletion event occurs as soon as data has been deleted from the form. For example, the linked macro can request confirmation in a dialog.
削除の確認時 イベントは、データがフォームから削除された直後に発生します。たとえば、リンクされたマクロはダイアログを開いて、確認を要求できます。
The Before record action event occurs before the current record is changed. For example, the linked macro can request confirmation in a dialog.
レコードのアクション実行前 イベントは、現在のレコードが変更される前に発生します。たとえば、リンクされたマクロはダイアログを開いて、確認を要求できます。
The After record action event occurs directly after the current record has been changed.
レコードのアクション実行後 イベントは、現在のレコードが変更された直後に発生します。
The Before record change event occurs before the current record pointer is changed.. For example, the linked macro can prevent this action by returning "FALSE".
レコード置換前 イベントは、現在のレコードポインタが変更される前に発生します。たとえば、リンクされたマクロは FALSE を返すと、このアクションを阻止できます。
The After record change event occurs directly after the current record pointer has been changed..
レコード置換後 イベントは、現在のレコードポインタが変更された直後に発生します。
The Fill parameters event occurs when the form to be loaded has parameters that must be filled out. For example, the data source of the form can be the following SQL command:
パラメータで入れる イベントは、読み込むフォームに、入力する必要があるパラメータがある場合に発生します。たとえば、フォームのデータソースとしては、次のような SQL コマンドを使用できます。
SELECT * FROM address WHERE name=:name
SELECT * FROM address WHERE name=:name
Here :name is a parameter that must be filled out when loading. The parameter is automatically filled out from the parent form if possible. If the parameter cannot be filled out, this event is called and a linked macro can fill out the parameter.
:name はここでは読み込むときに時に記述が必要なパラメータです。このパラメータはそれが可能であれば上位フォームから自動的に記述されます。パラメータが記述されないときに、このイベントが発生してリンクされているマクロがこのパラメータを記述します。
The Error occurred event is activated if an error occurs when accessing the data source. This applies to forms, list boxes and combo boxes.
エラー発生時 イベントは、データソースへのアクセス時にエラーが発生した場合にアクティブになります。このイベントは、フォーム、リストボックス、およびコンボボックスに適用されます。